<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <title>登录</title>
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
		<script type="text/javascript" src="js/jquery-1.11.0.min.js" ></script>
	</head>
    
	<body style="background:url(images/bg.png)">   
		
        
		<div class="container">		
			<div class="main">
                <div class="wrap">
	                <div class="header">
			            <span class="gt"><img src="images/1-1.png"></span>
			            	注册                    
			            <span style="float: right; font-size: 14px; margin-right: 5px;">
			            	<a href="denglu.html" style=" color: #fff;">登录</a>
			            	<a href="zhuce.html" style=" color: #fff;">注册</a>
			            </span>                 
			            <div style="clear:both;"></div>        
				    </div>
	               	<div style="clear:both;"></div>                
                
	                <div class="cont1">
	                    <div class="account"><span>姓名：</span><input type="text" name="account" id="account1" onblur="shiqu()" style=" width:63%; color: #FFF;"></div>                  
	                    <div class="account"><span>身份证号：</span><input type="text" name="account" id="account2" style=" width:65%; color: #FFF;"></div>
	                    <div class="account"><span>手机号：</span><input type="text" name="account" id="account3" style=" width:63%;color: #FFF;"></div> 
	                    <div class="account" style="position: relative;">
	                        <div class="account_left">
	                            <span style="color:#fff;">验证码：</span>
	                        </div>
	                        <div class="account_right"> 
	                            <input type="text" name="account" id="account1" style="float:left;color: #FFF;">                            
	                        </div> 
	                        <a href="#" style="position: absolute; right: 0; z-index: 99;"><input type="button" name="account" value="获取验证码" class="zhuce_submit"></a>
	                    </div>
	            	
	                    <div class="dl_ljzhuce"><input type="button" name="" value="立即注册" class="submit"/></div>
	                    <div class="yyzh_denglu">已有账号直接登录</div>
	                </div>
                
				</div>
		</div>
	
		<script>			
			function shiqu(){
				alert(000);
				$.ajax({
				   type: "GET",
				   url: "http://192.168.1.66:8080/wap/user/userRegisTest",
				   data: "userName="+$("#account3").val(),
				   dataType : 'text',  
				   success: function(msg){
				   	if(msg == 0){
				   		alert("可以注册");
				   	}else{
				   		alert("用户名重复");
				   		$("#regisButton").css("background","#828182");
				   		return false;
				   	}
				   	
				   }
				});
			}
		</script>
	</body>
</html>

